/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.Creational.builder;

/**
 *
 * @author Nashief
 */
public class MealDirector {
    
    private MealBuilder mealbuilder = null;

    public MealBuilder getMealbuilder() {
        return mealbuilder;
    }

    public void setMealbuilder(MealBuilder mealbuilder) {
        this.mealbuilder = mealbuilder;
    }

    public MealDirector() {
    }
    
    
    
    public MealDirector(MealBuilder meal){
    this.mealbuilder=meal;
    }  
    public void constructMeal(){
    mealbuilder.buildDrink();
    mealbuilder.buildMainCourse();
    mealbuilder.buildSide();
    } 
    public Meal getMeal(){
    return mealbuilder.getMeal();
    }
}
